(function () {
    let i = j = 0;
    let count = 0;
    let x = new Array("甲", "乙", "丙", "丁", "戊", "己", "庚", "辛", "壬", "癸");
    let y = new Array("子", "丑", "寅", "卯", "辰", "巳", "午", "未", "申", "酉", "戌", "亥");
    let X, Y;
    while (count < 60) {
        if (i < x.length) {
            X = x[i];
        }
        else {
            i = 0;
            X = x[i];

        }
        if (j < y.length) {
            Y = y[j];
        }
        else {
            j = 0;
            Y = y[j];
        }
        process.stdout.write(X + Y + " ");
        count++;
        i++;
        j++;
        if (count % 10 == 0) {
            console.log('\n');
        }
    }
    console.log("天干地支甲子" + count + "年");
})()